/**
 * 
 */
package sailing.entity;

import cjlite.dao.support.Column;
import cjlite.dao.support.DT;
import cjlite.dao.support.Id;
import cjlite.dao.support.Table;

/**
 * @author kevin
 * 
 */
@Table
public class AccountingSubject {

	@Id
	@Column(dt = DT.CHAR, length = 20)
	private String id;

	@Column(dt = DT.INT)
	private int level;

	@Column(dt = DT.INT)
	private int code;

	@Column(dt = DT.CHAR, length = 20)
	private String name;

	@Column(dt = DT.CHAR, length = 20)
	private String parentId;

	@Column(dt = DT.VARCHAR, length = 1000)
	private String desc;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		//builder.append("AccountingSubject [code=");
		builder.append(code);
		//builder.append(", name=");
		builder.append(" - ");
		builder.append(name);
		//builder.append("]");
		return builder.toString();
	}
	
	

}
